package com.example.yjhadmin.service;

import com.yc.yjh.entity.Players;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "yjh-team")
@RequestMapping("/yjh/players")
public interface PlayerFeign {
    @RequestMapping("players")
    List<Players> queryplayers(@RequestParam("team_id") int teamId);
}
